<!-- polls/templates/polls/base.html -->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>智能投票系统 - {% block title %}{% endblock %}</title>
    
    <!-- Bootstrap 5 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- 自定义样式 -->
    <style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
        }
        
        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
            font-family: 'Poppins', sans-serif;
        }
        
        .main-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .question-card {
            transition: transform 0.3s;
            border: none;
            border-radius: 12px;
            background: linear-gradient(145deg, #ffffff, #f8f9fa);
        }
        
        .question-card:hover {
            transform: translateY(-5px);
        }
        
        .vote-btn {
            background: var(--secondary-color);
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            transition: all 0.3s;
        }
        
        .vote-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(52,152,219,0.3);
        }
        
        .chart-container {
            height: 400px;
            margin: 2rem 0;
        }
    </style>
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary py-3">
        <div class="container">
            <a class="navbar-brand" href="/polls/">
                <img src="https://img.icons8.com/clouds/100/000000/elections.png" 
                     alt="Logo" 
                     width="40" 
                     height="40"
                     class="d-inline-block align-text-top">
                智能投票系统
            </a>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="main-container">
        {% block content %}
        {% endblock %}
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark text-white mt-5 py-4">
        <div class="container text-center">
            <p class="mb-0">© 2025 智能投票系统. 保留所有权利</p>
        </div>
    </footer>

    <!-- 脚本 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    {% block scripts %}{% endblock %}
</body>
</html>
